Removed x/y/x_set/y_set from GtkWidgetAuxInfo
authorTristan Van Berkom <tristan.van.berkom@gmail.com>
Tue, 7 Sep 2010 07:21:44 +0000 (16:21 +0900)
committerTristan Van Berkom <tristan.van.berkom@gmail.com>
Tue, 7 Sep 2010 07:21:44 +0000 (16:21 +0900)
These members of GtkWidgetAuxData can no longer be set after
the removal of deprecated gtk_widget_set_uposition(), now removed
these members completely and removed the access to them from
gtk_widget_size_allocate().

gtk/gtkwidget.c
gtk/gtkwidget.h

index e2b6e343c16a49777ef1a904a2c86743ffb7f277..6f34ec1b39477f68dd828e840602c672f9ff01f6 100644 (file)
@@ -3896,7 +3896,6 @@ void
 gtk_widget_size_allocate (GtkWidget    *widget,
                          GtkAllocation *allocation)
 {
-  GtkWidgetAuxInfo *aux_info;
   GdkRectangle real_allocation;
   GdkRectangle old_allocation;
   gboolean alloc_needed;
@@ -3933,15 +3932,6 @@ gtk_widget_size_allocate (GtkWidget      *widget,
 
   old_allocation = widget->allocation;
   real_allocation = *allocation;
-  aux_info =_gtk_widget_get_aux_info (widget, FALSE);
-  
-  if (aux_info)
-    {
-      if (aux_info->x_set)
-       real_allocation.x = aux_info->x;
-      if (aux_info->y_set)
-       real_allocation.y = aux_info->y;
-    }
 
   if (real_allocation.width < 0 || real_allocation.height < 0)
     {
index e5f722050e5cf82c612e1df0701074b6f2b5bc87..4b35ca3b2d3e982e0a7f29e199d4a3c30e69129c 100644 (file)
@@ -540,13 +540,8 @@ struct _GtkWidgetClass
 
 struct _GtkWidgetAuxInfo
 {
-  gint x;
-  gint y;
   gint width;
   gint height;
-
-  guint x_set : 1;
-  guint y_set : 1;
 };
 
 struct _GtkWidgetShapeInfo